package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import oracle.net.aso.r;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.User;


public class UserRowMapper implements RowMapper {


	public Object mapRow(ResultSet rs, int index) throws SQLException {
		User user = new User();
		user.setUid(rs.getInt("uid"));
		user.setType(rs.getString("type"));
		user.setName(rs.getString("name"));
		user.setPassword(rs.getString("password"));
		return user;
	}
 

}
